-- GENERATED SPELL FOR [Slitherblade Sorceress] --


function spell0_4712(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_4712', 0, 1)
end

function spell1_4712(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(20819,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4712', 7000, 1)
end

function Sorts_4712(pUnit, Event)
local choix_sorts_4712 = math.random(0, 1)
if choix_sorts_4712 == 0 then
pUnit:RegisterEvent('spell0_4712', 1, 1)
end
if choix_sorts_4712 == 1 then
pUnit:RegisterEvent('spell1_4712', 1, 1)
end
end

function mob4712_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4712', math.random(1500, 3000), 1)
end

function mob4712_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4712_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4712_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4712, 1, 'mob4712_Action')
RegisterUnitEvent(4712, 2, 'mob4712_Leave')
RegisterUnitEvent(4712, 3, 'mob4712_Kill')
RegisterUnitEvent(4712, 4, 'mob4712_Die')
